<#assign name="longteng"/>

${name}
${age!}
${money?string("#")}
${time?string("yyyy-MM-dd hh:mm:ss")}

${user.age}

<#if name ="xx">
    <span style="color: red">xx</span>
<#elseif name="longteng">
    <span style="color: green">longteng</span>
<#else >
    <span style="color: #00a65a">其他</span>
</#if>
</br>
判断一个对象是否是空值
<#if abx?exists>
    存在这个对象
    <#else >
    不存在这个对象
</#if>

<#if money gt 5000>
    大于5000块钱
<#else >
    小于5000块钱
</#if>

<#list userList as user>
<div>
    ${user.name}
    ${user.age}
</div>
</#list>
<#list aList as l>
    <div>
        ${l}
    </div>
</#list>
</br>
宏指令
<@methodName "参数1" "参数2">
    我是嵌套进来的参数
</@methodName>
<#macro methodName param1 param2>
    <div>
        菜单1:${param1}
        菜单2:${param2}
    </div>
    <div>
        具体的页面:<#nested />
    </div>
</#macro>

<#macro bbbb booklist>
    <#list booklist as bb>
        ${bb}
    </#list>
</#macro>
<@bbbb booklist=["a","b","c"]/>